home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dicecache / lock.c < prev    next >
C/C++ Source or Header  |  1997-09-09  |  501b  |  38 lines

  1. /*
  2.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  3.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  4.  *    DICE-LICENSE.TXT.
  5.  */
  6.  
  7. /*
  8.  *  LOCK.C
  9.  */
  10.  
  11. #include "defs.h"
  12.  
  13. #ifdef NOTDEF
  14. /*
  15.  *  library interface
  16.  */
  17.  
  18. Prototype LibCall void LockHDDB(void);
  19. Prototype LibCall void UnLockHDDB(void);
  20.  
  21. /*
  22.  *  library local
  23.  */
  24.  
  25. LibCall void
  26. LockHDDB(void)
  27. {
  28.     ObtainSemaphore(&SemLock);
  29. }
  30.  
  31. LibCall void
  32. UnLockHDDB(void)
  33. {
  34.     ReleaseSemaphore(&SemLock);
  35. }
  36.  
  37. #endif
  38.